package chixing.day12.work.w1;

import java.util.List;

public class LibraryTest {
    public static void main(String[] args) {
        Library library = Library.getInstance();
        library.addBook(new Book("Java编程思想", "Bruce Eckel", 108.0));
        library.addBook(new Book("数据结构与算法分析", "Mark Allen Weiss", 89.0));
        library.addBook(new Book("深入理解Java虚拟机", "周志明", 79.0));
        library.addBook(new Book("Java并发编程实战", "Brian Goetz", 99.0));
        library.addBook(new Book("设计模式：可复用面向对象软件的基础", "Erich Gamma", 58.0));
        library.displayAllBooks();
        List<Book> b1 = library.findBooks("Java");
        System.out.println(b1);
        List<Book> b2 = library.findBooks("周志明");
        System.out.println(b2);
        library.removeBook("设计模式：可复用面向对象软件的基础");
        library.displayAllBooks();
    }
}
